interface Animal{
    void shout();

}
public class Cxxx {
    public static void main(String[]args){
        String name="小花";
        animalShout(new Animal(){
            public void shout(){
                System.out.println("匿名内部类输出:"+name+"喵喵...");
            }
        });
                animalShout(()->System.out.println("Lambda表达式输出:"+name+"喵喵..."));
    }
    public static void animalShout(Animal an){
        an.shout();
    }
}
